package cn.openea.perpartner.cms.web.service;

import cn.openea.perpartner.cms.web.entity.CmsCustomer;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.openea.perpartner.cms.web.dto.AssignDto;
import cn.openea.perpartner.cms.web.dto.CustomerDto;

import java.io.Serializable;
import java.util.List;

/**
 * (CmsCustomer)表服务接口
 *
 * @author makejava
 * @since 2022-07-19 22:15:35
 */
public interface ICmsCustomerService extends IService<CmsCustomer> {

    /**
     * 通过ID查询单条数据
     *
     * @param unid 主键
     * @return 实例对象
     */
    CustomerDto queryById(Long unid);

    /**
     * 修改数据
     *
     * @param customerDto 实例对象
     * @return 实例对象
     */
    boolean save(CustomerDto customerDto);

    List<CmsCustomer> selectList(String authId,String searchStr);
    String importCustomer(List<CmsCustomer> customerList);
    boolean recycle(List<Long> idList);
    boolean assign( List<AssignDto> assignList) throws Exception;
    List<Object> selectLogList(int offset);
    boolean approveContract(Serializable id);
    boolean refuseContract(Serializable id,String context);
    boolean applyContract(Serializable id);
    List<CmsCustomer> selectList(String searchStr);
    boolean check(String customerId);


}
